import bisect

insert_list = list()
bisect.insort(insert_list, 3)
bisect.insort(insert_list, 2)
bisect.insort(insert_list, 5)
bisect.insort(insert_list, 1)
bisect.insort(insert_list, 6)
print(bisect.bisect(insert_list, 3))
print(insert_list)

